class BaseModel {
  public data
  public message
  public status

  constructor(data: any, message: string, status: number) {
    this.data = data
    this.message = message
    this.status = status
  }
}
export class SuccessModel extends BaseModel {
  // 用于全局调用返回确认信息
  constructor(data, message = '操作成功', status = 0) {
    super(data, message, status)
  }
}

export class ErrorModel extends BaseModel {
  // 用于全局调用返回错误信息
  constructor(data, message = '操作失败', status = -1) {
    super(data, message, status)
  }
}
